import { routes } from "@/router";

const menuRoute = routes[1].children!.filter((item: any) => item.meta?.menuId);
export const getSideRoutePath = () => {
  const obj: Record<string, string> = {};
  menuRoute.map((item: any) => {
    const menuId: string = item.meta?.menuId as string;
    const path = item.path;
    obj[menuId as string] = path;
  });
  return obj;
};

// const sideRoute: Record<string, string> = {
//   "1-1": "/purchase/index",
//   "2-1": "/materialCost/upload",
//   "2-2": "/materialCost/log",
//   "2-3": "/materialCost/costAccumulation",
//   "2-4": "/materialCost/costUpdate",
//   "2-5": "/materialCost/query",
//   "2-6": "/materialCost/typeSetting",
//   "3-1": "/accountEnterOut/index",
//   "4": "/cms/404",
//   "5": "/cms/404",
//   "6": "/purchase/query",
//   "7-1": "/sysAdmin/dictSetting",
//   "7-2": "/sysAdmin/userSetting",
//   "7-3": "/sysAdmin/roleSetting",
//   "7-4": "/sysAdmin/menuSetting",
//   "8": "/transction/all",
//   "9-1": "/demo/three-d",
//   "9-2": "/demo/2023",
//   "9-3": "/demo/cssDemo",
// };
